﻿using Kingdee.BOS.App.Data;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Core.DynamicForm.PlugIn;
using Kingdee.BOS.Orm.DataEntity;
using Kingdee.BOS.ServiceHelper;
using Kingdee.BOS;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Net;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Kingdee.BOS.Util;
using System.ComponentModel;

namespace LiMinCRMPlugin.InterfaceDocking
{
    /// <summary>
    /// 发货通知删除插件
    /// </summary>
    /// <remarks>
    /// 功能：删除查询CRM发货通知，更新清空erp的内码信息。
    /// 创建人：wzx
    /// 创建日期：2024.7.26
    /// 修改信息（1）：修改人，修改日期，修改内容
    /// </remarks>
    [Description("发货通知删除插件更新CRM")]
    [HotUpdate]
    public class DeliveryNoticeDeleteUpdateCRM : AbstractOperationServicePlugIn
    {
        //OnPreparePropertys 数据加载前，确保需要的属性被加载
        public override void OnPreparePropertys(PreparePropertysEventArgs e)
        {
            base.OnPreparePropertys(e);
            e.FieldKeys.Add("F_DEV_CRMNumber");//CRM编码
            e.FieldKeys.Add("F_DEV_CRMId");//CRM唯一ID
            e.FieldKeys.Add("F_DEV_DataSrc");//数据来源
            e.FieldKeys.Add("F_DEV_Saler");//销售员
            e.FieldKeys.Add("F_DEV_CRMEntryId");//CRM明细唯一ID
            
        }
        /// <summary>
        /// 事务结束后事件
        /// </summary>
        /// <param name="e"></param>
        public override void EndOperationTransaction(EndOperationTransactionArgs e)
        {
            base.EndOperationTransaction(e);
            //读取全部的单据,for循环,转换成DynamicObject类型
            foreach (DynamicObject entity in e.DataEntitys)
            {       
                string FID = entity["ID"].ToString();
                string FBillNo = entity["BillNo"].ToString();
                string CRMNo = Convert.ToString(entity["F_DEV_CRMNumber"]);//CRM编码
                string CRMID = Convert.ToString(entity["F_DEV_CRMId"]);//CRM唯一ID
                string DataSrc = Convert.ToString(entity["F_DEV_DataSrc"]);//数据来源

                //增加不是内部结算的
                if (!CRMNo.IsNullOrEmptyOrWhiteSpace()&& DataSrc == "CRM" )//CRM生成，crm编码不为空
                {
                    DynamicObject Saler = entity["F_DEV_Saler"] as DynamicObject;//销售员
                    int SalerId = 0;
                    string SalerNo = "";
                    if (Saler != null)
                    {
                        SalerId = Convert.ToInt32(Saler["ID"].ToString());
                        SalerNo = Saler["FStaffNumber"].ToString();
                    }

                    #region 根据销售员查询用户账号
                    int CONTACTOBJECTID = 0;//联系对象内码
                    string SQLCONTACTOBJECT = string.Format(@"/*dialect*/select FID from V_BD_CONTACTOBJECT
where FNUMBER='{0}' ", SalerNo);
                    DataTable dtCONTACTOBJECT = DBUtils.ExecuteDataSet(this.Context, SQLCONTACTOBJECT).Tables[0];
                    if (dtCONTACTOBJECT.Rows.Count > 0)
                    {
                        CONTACTOBJECTID = Convert.ToInt32(dtCONTACTOBJECT.Rows[0]["FID"]);
                    }
                    string UserAccount = "";//用户账号
                    string SQLUser = string.Format(@"/*dialect*/select FUSERACCOUNT from T_SEC_user where FLINKOBJECT='{0}' ", CONTACTOBJECTID);
                    DataTable dtUser = DBUtils.ExecuteDataSet(this.Context, SQLUser).Tables[0];
                    if (dtUser.Rows.Count > 0)
                    {
                        UserAccount = dtUser.Rows[0]["FUSERACCOUNT"].ToString();
                    }
                    #endregion

                    DynamicObjectCollection FEntityDetail = entity["SAL_DELIVERYNOTICEENTRY"] as DynamicObjectCollection;//明细 
                    List<DeliveryNoticeDeleteUpdateCRMModel.detailList> detailList = new List<DeliveryNoticeDeleteUpdateCRMModel.detailList>();//明细数据组
                    foreach (var item in FEntityDetail)
                    {
                        string FENTRTYID = Convert.ToString(item["id"]);
                        int CRMEntryId = Convert.ToInt32(item["F_DEV_CRMEntryId"]);//CRM明细唯一ID
                        
                        #region 发货通知单detail数组
                        DeliveryNoticeDeleteUpdateCRMModel.operate operate = new DeliveryNoticeDeleteUpdateCRMModel.operate();
                        operate.action = "SaveOrUpdate";

                        DeliveryNoticeDeleteUpdateCRMModel.dataList dataList = new DeliveryNoticeDeleteUpdateCRMModel.dataList();              
                        dataList.id = CRMEntryId;
                        dataList.ddmxxh = null;
                        dataList.djzj = null;

                         
                        DeliveryNoticeDeleteUpdateCRMModel.detailList detailList1 = new DeliveryNoticeDeleteUpdateCRMModel.detailList();
                        detailList1.operate = operate;
                        detailList1.data = dataList;
                        detailList.Add(detailList1);

                        #endregion
                    }
                    #region 发货通知单mainTable数组
                    DeliveryNoticeDeleteUpdateCRMModel.mainTableList mainTable = new DeliveryNoticeDeleteUpdateCRMModel.mainTableList();
                   
                    mainTable.crmbm = CRMNo;
                    mainTable.djnm = null;
                    #endregion
                    if (this.FormOperation.Operation.ToUpper() == "DELETE" )
                    {
                        string resultSearch = CRMSearchDeliveryNotice(CRMNo, SalerNo);
                        //存在数据，需要更新
                        if (resultSearch == FID)
                        {
                            Return resultAUpdate = CRMUpdateDeliveryNotice(mainTable, detailList, SalerNo);
                            if (resultAUpdate.status == "1")
                            {
                                #region 发货通知单写日志(插入一张CRM接口日志单据，更新单据上的接口调用方式/调用时间/调用结果）
                                Common.InterfaceLog interfaceLog = new Common.InterfaceLog();
                                interfaceLog.FBILLNO = FBillNo;
                                interfaceLog.FBILLID = FID;
                                interfaceLog.FDATE = System.DateTime.Now;
                                interfaceLog.FINTERNAME = "更新发货通知";
                                interfaceLog.FInvokeType = "";
                                interfaceLog.Ftoken = "";
                                interfaceLog.FSTATUS = "成功";
                                interfaceLog.FRequsetData = "{\"data\":[{\"operationinfo\":{\"operator\":\"" + SalerNo + "\",\"operationDate\":\"" + DateTime.Now.ToString("yyyy-MM-dd") + "\",\"operationTime\":\"" + DateTime.Now.ToString("HH:mm:ss") + "\"},\"mainTable\":" + JsonConvert.SerializeObject(mainTable) + ",\"detail1\":" + JsonConvert.SerializeObject(detailList) + "}],\"header\":{\"systemid\":\"kingde\",\"" + DateTime.Now + "\":\"currentTimeTamp \",\"Md5\":\"\"}}";
                                interfaceLog.FReturnData = JsonConvert.SerializeObject(resultAUpdate.datajson);
                                interfaceLog.FRequest = "{\"data\":[{\"operationinfo\":{\"operator\":\"" + SalerNo + "\",\"operationDate\":\"" + DateTime.Now.ToString("yyyy-MM-dd") + "\",\"operationTime\":\"" + DateTime.Now.ToString("HH:mm:ss") + "\"},\"mainTable\":" + JsonConvert.SerializeObject(mainTable) + ",\"detail1\":" + JsonConvert.SerializeObject(detailList) + "}],\"header\":{\"systemid\":\"kingde\",\"" + DateTime.Now + "\":\"currentTimeTamp \",\"Md5\":\"\"}}";
                                interfaceLog.FReturn = JsonConvert.SerializeObject(resultAUpdate.datajson);
                                string LogSql = interfaceLog.WriteCRMLogSql();//获取写入日志单据的SQL
                                List<string> sqlList = new List<string>();
                                if (!string.IsNullOrEmpty(LogSql))
                                {
                                    sqlList.Add(LogSql);
                                }
                                //更新单据
                                string updateSql = string.Format(@"/*dialect*/ update t_AR_receivable set F_DEV_FDATE='{0}',F_DEV_FSTATUS='{1}' 
                    where FID={2}", interfaceLog.FDATE, interfaceLog.FSTATUS, FID);
                                sqlList.Add(updateSql);
                                DBServiceHelper.ExecuteBatch(this.Context, sqlList);
                                #endregion
                            }
                            else
                            {
                                #region 发货通知单写日志(插入一张CRM接口日志单据，更新单据上的接口调用方式/调用时间/调用结果）
                                Common.InterfaceLog interfaceLog = new Common.InterfaceLog();
                                interfaceLog.FBILLNO = FBillNo;
                                interfaceLog.FBILLID = FID;
                                interfaceLog.FDATE = System.DateTime.Now;
                                interfaceLog.FINTERNAME = "更新发货通知";
                                interfaceLog.FInvokeType = "";
                                interfaceLog.Ftoken = "";
                                interfaceLog.FSTATUS = "失败";
                                interfaceLog.FRequsetData = "{\"data\":[{\"operationinfo\":{\"operator\":\"" + SalerNo + "\",\"operationDate\":\"" + DateTime.Now.ToString("yyyy-MM-dd") + "\",\"operationTime\":\"" + DateTime.Now.ToString("HH:mm:ss") + "\"},\"mainTable\":" + JsonConvert.SerializeObject(mainTable) + ",\"detail1\":" + JsonConvert.SerializeObject(detailList) + "}],\"header\":{\"systemid\":\"kingde\",\"" + DateTime.Now + "\":\"currentTimeTamp \",\"Md5\":\"\"}}";
                                interfaceLog.FReturnData = JsonConvert.SerializeObject(resultAUpdate.datajson);
                                interfaceLog.FRequest = "{\"data\":[{\"operationinfo\":{\"operator\":\"" + SalerNo + "\",\"operationDate\":\"" + DateTime.Now.ToString("yyyy-MM-dd") + "\",\"operationTime\":\"" + DateTime.Now.ToString("HH:mm:ss") + "\"},\"mainTable\":" + JsonConvert.SerializeObject(mainTable) + ",\"detail1\":" + JsonConvert.SerializeObject(detailList) + "}],\"header\":{\"systemid\":\"kingde\",\"" + DateTime.Now + "\":\"currentTimeTamp \",\"Md5\":\"\"}}";
                                interfaceLog.FReturn = JsonConvert.SerializeObject(resultAUpdate.datajson);
                                string LogSql = interfaceLog.WriteCRMLogSql();//获取写入日志单据的SQL
                                List<string> sqlList = new List<string>();
                                if (!string.IsNullOrEmpty(LogSql))
                                {
                                    sqlList.Add(LogSql);
                                }
                                //更新单据
                                string updateSql = string.Format(@"/*dialect*/ update t_AR_receivable set F_DEV_FDATE='{0}',F_DEV_FSTATUS='{1}' 
                    where FID={2}", interfaceLog.FDATE, interfaceLog.FSTATUS, FID);
                                sqlList.Add(updateSql);
                                DBServiceHelper.ExecuteBatch(this.Context, sqlList);
                                #endregion
                                throw new KDBusinessException("", resultAUpdate.datajson);
                            }
                        }
                        else
                        {
                            #region 发货通知单写日志(插入一张CRM接口日志单据，更新单据上的接口调用方式/调用时间/调用结果）
                            Common.InterfaceLog interfaceLog = new Common.InterfaceLog();
                            interfaceLog.FBILLNO = FBillNo;
                            interfaceLog.FBILLID = FID;
                            interfaceLog.FDATE = System.DateTime.Now;
                            interfaceLog.FINTERNAME = "更新发货通知";
                            interfaceLog.FInvokeType = "";
                            interfaceLog.Ftoken = "";
                            interfaceLog.FSTATUS = "失败";
                            interfaceLog.FRequsetData = "{\"data\":[{\"operationinfo\":{\"operator\":\"" + SalerNo + "\",\"operationDate\":\"" + DateTime.Now.ToString("yyyy-MM-dd") + "\",\"operationTime\":\"" + DateTime.Now.ToString("HH:mm:ss") + "\"},\"mainTable\":" + JsonConvert.SerializeObject(mainTable) + ",\"detail1\":" + JsonConvert.SerializeObject(detailList) + "}],\"header\":{\"systemid\":\"kingde\",\"" + DateTime.Now + "\":\"currentTimeTamp \",\"Md5\":\"\"}}";
                            interfaceLog.FReturnData = resultSearch;
                            interfaceLog.FRequest = "{\"data\":[{\"operationinfo\":{\"operator\":\"" + SalerNo + "\",\"operationDate\":\"" + DateTime.Now.ToString("yyyy-MM-dd") + "\",\"operationTime\":\"" + DateTime.Now.ToString("HH:mm:ss") + "\"},\"mainTable\":" + JsonConvert.SerializeObject(mainTable) + ",\"detail1\":" + JsonConvert.SerializeObject(detailList) + "}],\"header\":{\"systemid\":\"kingde\",\"" + DateTime.Now + "\":\"currentTimeTamp \",\"Md5\":\"\"}}";
                            interfaceLog.FReturn = resultSearch;
                            string LogSql = interfaceLog.WriteCRMLogSql();//获取写入日志单据的SQL
                            List<string> sqlList = new List<string>();
                            if (!string.IsNullOrEmpty(LogSql))
                            {
                                sqlList.Add(LogSql);
                            }
                            //更新单据
                            string updateSql = string.Format(@"/*dialect*/ update t_AR_receivable set F_DEV_FDATE='{0}',F_DEV_FSTATUS='{1}' 
                    where FID={2}", interfaceLog.FDATE, interfaceLog.FSTATUS, FID);
                            sqlList.Add(updateSql);
                            DBServiceHelper.ExecuteBatch(this.Context, sqlList);
                            #endregion
                            //throw new KDBusinessException("", resultSearch);
                        }
                    }
                   
                }
            }
        }

        /// <summary>
        /// api配置
        /// </summary>
        public DataTable APISetting(Context ctx, string InterfaceName)
        {
            string Sql = string.Format(@"select * from RDLV_t_CRMInterface where F_RDLV_InterfaceName='{0}'", InterfaceName);
            return DBServiceHelper.ExecuteDataSet(ctx, Sql).Tables[0];
        }


        /// <summary>
        /// CRM查询发货通知单接口
        /// </summary>
        public string CRMSearchDeliveryNotice(string crmbm, string UserAccount)
        {
            //当前日期
            String currentDate = DateTime.Now.ToString("yyyy-MM-dd");
            //当前时间
            String currentTime = DateTime.Now.ToString("hh:mm:ss");

            string requestUri1 = "http://10.10.17.127:8086/api/cube/restful/interface/getDataByPK/select_Shipping_Notice";

            //系统标识
            String systemid = "kingdee";
            //密码
            String d_password = "p@ssw0rd...";
            DataTable dt = APISetting(this.Context,"查询发货通知");
            if (dt.Rows.Count > 0)
            {
                requestUri1 = Convert.ToString(dt.Rows[0]["F_RDLV_URL"]);
                systemid = Convert.ToString(dt.Rows[0]["F_RDLV_SystemId"]);
                d_password = Convert.ToString(dt.Rows[0]["F_RDLV_Password"]);
            }
            //获取时间戳
            String currentTimeTamp = getTimestamp();
            String md5Source = systemid + d_password + currentTimeTamp;
            String md5OfStr = Md5(md5Source).ToLower();

            string result = PostToSearchNews(requestUri1, systemid, currentTimeTamp, md5OfStr, crmbm, UserAccount);


            return result;
        }

        /// <summary>
        /// CRM更新发货通知接口
        /// </summary>
        public Return CRMUpdateDeliveryNotice(DeliveryNoticeDeleteUpdateCRMModel.mainTableList mainTable, List<DeliveryNoticeDeleteUpdateCRMModel.detailList> detail1, string UserAccount)
        {
            //当前日期
            String currentDate = DateTime.Now.ToString("yyyy-MM-dd");
            //当前时间
            String currentTime = DateTime.Now.ToString("hh:mm:ss");

            string requestUri1 = "http://10.10.17.127:8086/api/cube/restful/interface/saveOrUpdateModeData/update_Shipping_Notice";

            //系统标识
            String systemid = "kingdee";
            //密码
            String d_password = "p@ssw0rd...";
            DataTable dt = APISetting(this.Context, "更新发货通知");
            if (dt.Rows.Count > 0)
            {
                requestUri1 = Convert.ToString(dt.Rows[0]["F_RDLV_URL"]);
                systemid = Convert.ToString(dt.Rows[0]["F_RDLV_SystemId"]);
                d_password = Convert.ToString(dt.Rows[0]["F_RDLV_Password"]);
            }
            //获取时间戳
            String currentTimeTamp = getTimestamp();
            String md5Source = systemid + d_password + currentTimeTamp;
            String md5OfStr = Md5(md5Source).ToLower();

            Return result = PostToUpdateNews(requestUri1, systemid, currentTimeTamp, md5OfStr, mainTable, detail1, UserAccount);


            return result;
        }

        /// <summary>
        /// md5加密
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        public static String Md5(string s)
        {
            char[] hexDigits = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
            MD5 md5 = new MD5CryptoServiceProvider();
            byte[] inputBytes = System.Text.Encoding.ASCII.GetBytes(s);
            byte[] result = md5.ComputeHash(inputBytes);
            int j = result.Length;
            char[] str = new char[j * 2];
            int k = 0;
            for (int i = 0; i < j; i++)
            {
                byte byte0 = result[i];
                str[k++] = hexDigits[byte0 >> 4 & 0xf];
                str[k++] = hexDigits[byte0 & 0xf];
            }
            return new String(str);
        }

        /// <summary>
        /// CRM查询发货通知POST
        /// </summary>
        public static string PostToSearchNews(string url, string systemid, string currentTimeTamp, string md5OfStr, string crmbm, string UserAccount)
        {
            Dictionary<string, string> dic = new Dictionary<string, string>
            {
                {"datajson","{\"operationinfo\":{\"operator\":\""+UserAccount+"\"},\"mainTable\":{\"crmbm\":\""+crmbm+"\"},\"header\":{\"systemid\":\""+systemid+"\",\"currentDateTime\":\""+currentTimeTamp+"\",\"Md5\":\""+md5OfStr+"\"}}"}
            };
            string result = string.Empty;
            HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
            req.Method = "POST";
            req.ContentType = "application/x-www-form-urlencoded;charset=utf-8";
            #region 添加Post 参数
            StringBuilder builder = new StringBuilder();
            int i = 0;
            foreach (var item in dic)
            {
                if (i > 0)
                    builder.Append("&");
                builder.AppendFormat("{0}={1}", item.Key, item.Value);
                i++;
            }
            byte[] data = Encoding.UTF8.GetBytes(builder.ToString());
            req.ContentLength = data.Length;
            using (Stream reqStream = req.GetRequestStream())
            {
                reqStream.Write(data, 0, data.Length);
                reqStream.Close();
            }
            #endregion

            HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
            Stream stream = resp.GetResponseStream();
            //获取响应内容
            using (StreamReader reader = new StreamReader(stream, Encoding.UTF8))
            {
                result = reader.ReadToEnd();
            }
            //string[] resAry = result.Split(new string[] { "result" }, StringSplitOptions.None);
            //string json = resAry[resAry.Length - 1].Remove(0, 3);
            //json= Regex.Replace(json, "\"\"", "\"");
            //json = json.Remove(json.Length - 2, 2);
            //json = Regex.Unescape(json);
            //if (json == "{}")
            //{
            //    return "无结果";
            //}
            //else
            //{
            //    Dictionary<string, object> dicJson = JsonConvert.DeserializeObject<Dictionary<string, object>>(json);
            //    Dictionary<string, object> mainTableJson = JsonConvert.DeserializeObject<Dictionary<string, object>>(dicJson["mainTable"].ToString());
            //    string returnCode = mainTableJson["djnm"].ToString();
            //    return returnCode;
            //}
            JObject jo = (JObject)JsonConvert.DeserializeObject(result);
            if (jo == null)
            {
                return "无结果";
            }
            else if (jo.ToString().Contains("status"))
            {
                string returnCode = jo["info"].ToString();
                return returnCode;
            }
            else if (jo["result"].ToString() == "{}")
            {
                return "无结果";
            }
            else
            {

                JToken rtToken = jo.SelectToken("result");
                JObject rt = (JObject)JsonConvert.DeserializeObject(rtToken.ToString());
                JToken mtToken = rt.SelectToken("mainTable");
                JObject mt = (JObject)JsonConvert.DeserializeObject(mtToken.ToString());
                string returnCode = mt["djnm"].ToString();
                return returnCode;
            }
        }



        /// <summary>
        /// CRM更新发货通知POST
        /// </summary>
        public static Return PostToUpdateNews(string url, string systemid, string currentTimeTamp, string md5OfStr, DeliveryNoticeDeleteUpdateCRMModel.mainTableList mainTable, List<DeliveryNoticeDeleteUpdateCRMModel.detailList> detail1, string UserAccount)
        {

            Dictionary<string, string> dic = new Dictionary<string, string>
            {
                {"datajson","{\"data\":[{\"operationinfo\":{\"operator\":\""+UserAccount+"\",\"operationDate\":\""+DateTime.Now.ToString("yyyy-MM-dd")+"\",\"operationTime\":\""+DateTime.Now.ToString("HH:mm:ss")+"\"},\"mainTable\":"+JsonConvert.SerializeObject(mainTable)+",\"detail1\":"+JsonConvert.SerializeObject(detail1)+"}],\"header\":{\"systemid\":\""+systemid+"\",\"currentDateTime\":\""+currentTimeTamp+"\",\"Md5\":\""+md5OfStr+"\"}}"}
            };
            string result = string.Empty;
            HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
            req.Method = "POST";
            req.ContentType = "application/x-www-form-urlencoded;charset=utf-8";
            #region 添加Post 参数
            StringBuilder builder = new StringBuilder();
            int i = 0;
            foreach (var item in dic)
            {
                if (i > 0)
                    builder.Append("&");
                builder.AppendFormat("{0}={1}", item.Key, item.Value);
                i++;
            }
            string b = builder.ToString();
            byte[] data = Encoding.UTF8.GetBytes(builder.ToString());
            req.ContentLength = data.Length;
            using (Stream reqStream = req.GetRequestStream())
            {
                reqStream.Write(data, 0, data.Length);
                reqStream.Close();
            }
            #endregion

            HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
            Stream stream = resp.GetResponseStream();
            //获取响应内容
            using (StreamReader reader = new StreamReader(stream, Encoding.UTF8))
            {
                result = reader.ReadToEnd();
            }
            Return @return = new Return();
            result = Regex.Unescape(result);//去除转义符
            result = Regex.Unescape(result);//去除转义符
            string rs = JsonConvert.SerializeObject(result);
            string[] resAry = result.Split(new string[] { "status" }, StringSplitOptions.None);
            string[] json = result.Split(new string[] { "datajson" }, StringSplitOptions.None);
            string status = "";
            status = resAry[resAry.Length - 1].Replace("\"", "");
            status = status.Replace(":", "");
            status = status.Replace("}", "");
            string json1 = json[json.Length - 1].Remove(0, 3);
            json1 = Regex.Replace(json1, "\"\"", "\"");
            json1 = Regex.Unescape(json1);
            //}
            @return.status = status;
            @return.datajson = json1;
            return @return;
        }


        /**
       * 获取时间戳   格式如：19990101235959
       * @return
       */
        public static String getTimestamp()
        {

            return DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss").Replace("-", "").Replace(":", "").Replace(" ", "").Replace("/", "");
        }


        /**
       * 接口返回值自定义 
       */
        public class Return
        {
            public string status { get; set; }
            public string datajson { get; set; }
        }

    }
}
